//
//  tour_lib.h
//  tour_lib
//
//  Created by xiang ying on 14-3-17.
//  Copyright (c) 2014年 xiang ying. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RespondDTO.h"

@interface tour_lib : NSObject

//提供zip解压方法
+(BOOL) UnzipOpenFile:(NSString*) zipFile;

//解析properties文件
//errorcode 0成功 -1文件不存在 2不是标准的properties文件
+ (void)parseProperties:(NSString*)filePath completion:(void(^)(NSInteger errCode,NSString *errorMsg,NSDictionary *result))completion;


#pragma mark - //网络请求接口

+(BOOL)checkNet;

//获取验证码
+(void)getRegisterCodeRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//注册或登录
+(void)setRegisterRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//用户信息
+(void)getRequestUserInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//修改信息
+(void)modifyRequestUserInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//添加银行卡
+(void)addCardRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//用户银行卡列表
+(void)getCardsRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//用户反馈
+(void)feedBackRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//添加用户使用记录
+(void)addUserlogRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//获取用户使用记录
+(void)getUserlogRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//获取周围景点
+(void)getNearSceniceRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//获取城市列表
+(void)getCitylistRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//获取城市下得景点
+(void)getCityscenicesRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//在线获取景点资源
+(void)getOnlineResourceRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//在线语音下载
+(void)downloadCache:(NSString*)url completion:(void(^)(RespondDTO *respond))completion;

//离线获取景点资源
+(void)getOfflineResourceRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

+(NSOperation*)downloadZip:(NSString*)url fileName:(NSString*)filename completion:(void(^)(RespondDTO *respond))completion;

//分享记录
+(void)shareRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//ad
+(void)adRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//loading
+(void)loadingRequestInfo:(NSDictionary*)info completion:(void(^)(RespondDTO *respond))completion;

//上传图片
+(void)uploadPic:(NSData*)imgData :(void(^)(RespondDTO *respond))completion;

@end
